<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>陈晓露</title>
</head>
<body>
    {% extends 'base.html' %}
    {% block content %}
    <table class="table">
        <thead class="thead-dark">
            <tr>
                <th scope="col">#</th>
                <th scope="col">书名</th>
                <th scope="col">出版社</th>
                <th scope="col">ISSN</th>
                <th scope="col">上传时间</th>
            </tr>
        </thead>
        <tbody>
        {% for book in bookset %}
            <tr>
                <th scope="row">{{ book.id }}</th>
                <td>{{ book.title }}</td>
                <td>{{ book.publish_office }}</td>
                <td>{{ book.ISSN }}</td>
                <td>{{ book.storage_time }}</td>
                <td>
                    <form method="post" action="del_row">
                        <input type="hidden" name="bookid" value={{book.id}}>
                        <button type="submit" class="btn btn-primary">删除</button>
                    </form>
                </td>
                <td>
                    <form method="post" action="go_edit_row">
                        <input type="hidden" name="bookid" value={{book.id}}>
                        <button type="submit" class="btn btn-primary">编辑</button>
                    </form>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    {% endblock %}
</body>
</html>